<!doctype html>
<%@ taglib prefix="perm" uri="http://wanhuakeji.com/permission" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<%@ include file="/WEB-INF/views-jsp/include/taglib/taglib.jsp" %>
<%@ include file="/WEB-INF/views-jsp/include/script/script.jsp" %>
<%@ include file="/WEB-INF/views-jsp/include/link/link.jsp" %>
<script type="text/javascript" src="${path}/html/js/js-jsp/layout-sub.js"></script>
<script type="text/javascript" src="${path}/html/js/js-jsp/de/device/device.js?v=<%out.print(Math.random());%>"></script>
<script type="text/javascript" src="${path}/html/js/js-jsp/common/select-plugin.js?v=<%out.print(Math.random());%>"></script>
<script>
    addDustBtn = <perm:hasPermission permission="rules:de_device_addDust"/>;
    addCraneBtn = <perm:hasPermission permission="rules:de_device_addCrane"/>;
    addVideoBtn = <perm:hasPermission permission="rules:de_device_addVideo"/>;
    delBtn = <perm:hasPermission permission="rules:de_device_del"/>;
    editBtn= <perm:hasPermission permission="rules:de_device_edit"/>;
    searchBtn = <perm:hasPermission permission="rules:de_device_find"/>;
    viewBtn = <perm:hasPermission permission="rules:de_device_view"/>;
</script>
<body style="height:100%; margin: 2px; ">
    <div class="easyui-layout"  fit="true" space="2">
		<input type="hidden" value="${deviceType}" id="deviceType_"/>
        <div region="north"  style="height:100%;">
            <div class="easyui-layout" fit="true" space="2">
                <div region="north" class="searchToolBar" border="false" style="height: 120px">
	                <fieldset>
		                <legend>系统操作</legend>
		                <form id="deviceQueryForm" name="deviceQueryForm" method="post">
			                <table class="searchTable">
				                <tr class="searchTableTr">
					                <td>
						                <input type="hidden" name="id" id="id_" value="" />
						                <input class="easyui-textbox" type="text" label="项目名称：" labelWidth="82" labelposition="left" data-options="prompt:'请输入项目名称'" name="prName_" id="prName_" style="width:90%; height: 32px">
					                </td>
					                <td>
						                <input class="easyui-textbox" type="text" label="设备名称：" labelWidth="82" labelposition="left" data-options="prompt:'请输入设备名称'" name="deName_" id="deName_" style="width:90%; height: 32px">
					                </td>
					                <td>
						                <input class="easyui-textbox" type="text" label="设备编号：" labelWidth="82" labelposition="left" data-options="prompt:'请输入设备编号'" name="deviceId_" id="deviceId_" style="width:90%; height: 32px">
					                </td>
					                <td>
						                <select class="easyui-combobox" label="设备类型：" labelWidth="82" labelposition="left" name="type_" id="type_" style="width:90%; height: 32px" editable="false">
							                <option value="" selected="selected">--请选择--</option>
							                <option value="dust">扬尘检测</option>
							                <option value="crane">起重机械</option>
							                <option value="video">视频监控</option>
						                </select>
					                </td>
				                </tr>
				                <tr class="searchTableTr">
					                <td></td>
					                <td colspan="3" style="width: 75%;">
						                <div class="searchButton">
							                <!--设备操作菜单-->
							                <div id="device_menu"></div>
						                </div>
					                </td>
				                </tr>
			                </table>
		                </form>
	                </fieldset>
                </div>
                <div region="center" border="false" style="padding: 1px;">
                    <!--设备表格列表-->
                    <table id="device_dataList"></table>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="${path}/html/js/js-jsp/common-optionBtnArray.js"></script>
</body>
</html>
